package com.lxmes.hr.service;

import java.util.List;
import com.lxmes.hr.domain.NcLeaveApproval;

/**
 * 请假审批单Service接口
 *
 * @author lx
 * @date 2023-04-11
 */
public interface INcLeaveApprovalService
{
    /**
     * 查询请假审批单
     *
     * @param id 请假审批单主键
     * @return 请假审批单
     */
    public NcLeaveApproval selectNcLeaveApprovalById(Long id);

    /**
     * 查询请假审批单列表
     *
     * @param ncLeaveApproval 请假审批单
     * @return 请假审批单集合
     */
    public List<NcLeaveApproval> selectNcLeaveApprovalList(NcLeaveApproval ncLeaveApproval);

    /**
     * 新增请假审批单
     *
     * @param ncLeaveApproval 请假审批单
     * @return 结果
     */
    public int insertNcLeaveApproval(NcLeaveApproval ncLeaveApproval);

    /**
     * 修改请假审批单
     *
     * @param ncLeaveApproval 请假审批单
     * @return 结果
     */
    public int updateNcLeaveApproval(NcLeaveApproval ncLeaveApproval);

    /**
     * 批量删除请假审批单
     *
     * @param ids 需要删除的请假审批单主键集合
     * @return 结果
     */
    public int deleteNcLeaveApprovalByIds(Long[] ids);

    /**
     * 删除请假审批单信息
     *
     * @param id 请假审批单主键
     * @return 结果
     */
    public int deleteNcLeaveApprovalById(Long id);

    /**
     * 导入请假审批单信息
     *
     * @return 结果
     */
    String imporIteminfo(List<NcLeaveApproval> ncLeaveApprovalList, boolean updateSupport, String operName);

    int updateNcLeaveApproval2(NcLeaveApproval ncLeaveApproval);
}
